<%--
    Document   : custtypelang
    Created on : Nov 23, 2011, 11:51:12 PM
    Author     : Venus
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*,Beans.ThamSoHT,Models.NgonNgu_Model,Models.ThamSoHT_Model"%>
<%
            int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
            String dsts = " 'checksubmitmsg', 'to', 'rightmsg', 'hours', 'minutes', 'hours', 'minutes', 'action', 'timename', 'timelang', 'language', 'from', 'notice', 'order' ";
            ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.

            String action = mdsts[0].getTenTS();
            String checksubmitmsg = mdsts[1].getTenTS();
            String from = mdsts[2].getTenTS();
            String hours = mdsts[3].getTenTS();
            String language = mdsts[4].getTenTS();
            String minutes = mdsts[5].getTenTS();
            String notice = mdsts[6].getTenTS();
            String order = mdsts[7].getTenTS();
            String rightmsg = mdsts[8].getTenTS();
            String timelang = mdsts[9].getTenTS();
            String timename = mdsts[10].getTenTS();
            String to = mdsts[11].getTenTS();

            String msgright = notice + "/" + rightmsg;
            String msgchecksubmit = notice + "/" + checksubmitmsg;

            Vector v = (Vector) request.getAttribute("TimeLang");
%>
<div class="bloc" style=" margin-top: 10px;">
    <div class="title">
        <%=timelang%>
        
    </div>
    <div class="content">
        <table>
            <thead>
                <tr>
                    <th style="width: 5%; padding-bottom: 5px;"><%=order%></th>
                    <th style="width: 12%; padding-bottom: 5px;"><%=language%></th>
                    <th style="width: 18%; padding-bottom: 5px;"><%=timename%></th>
                    <th style=" width: 12%"></th>
                    <th style="width: 15%; padding-bottom: 5px;"><%=from%></th>
                    <th style=" width: 12%"></th>
                    <th style="width: 15%; padding-bottom: 5px;"><%=to%></th>
                    <th style="width: 20%; padding-bottom: 5px;"><%=action%></th>
                </tr>
            </thead>
            <tbody id="time">
                <%
                            for (int i = 0; i < v.size(); i++) {
                                Beans.ThoiDiem td = (Beans.ThoiDiem) v.elementAt(i);
                %>
                <tr>
                    <td style=" padding-left: 10px;"><%= i + 1%></td>
                    <td><%= Models.NgonNgu_Model.TenNgonNgu(td.getMaNN())%></td>
                    <td><div id="tentd<%= td.getMaNN()%>"><%=td.getTenTD() %></div></td>
                    <td>
                        <div style=" float: left; width: 20px; margin-left: 40px;" id="tugio<%= td.getMaNN()%>"><%= td.getTuGio() %></div>  <%=hours%>
                    </td>
                    <td>
                        <div style=" float: left; width: 20px; margin-left: 40px;" id="tuphut<%= td.getMaNN()%>"><%= td.getTuPhut() %></div>  <%=minutes%>
                    </td>
                    <td>
                        <div style=" float: left; width: 20px; margin-left: 40px;" id="dengio<%= td.getMaNN()%>"><%= td.getDenGio() %></div>  <%=hours%>
                    </td>
                    <td>
                        <div style=" float: left; width: 20px; margin-left: 40px;" id="denphut<%= td.getMaNN()%>"><%= td.getDenPhut() %></div>  <%=minutes%>
                    </td>
                    <td>
                        <a href="#" title="<%= td.getMaNN()%>" class="<%=td.getTenTD()%>" id="<%= td.getTuGio() %>" lang="<%= td.getTuPhut() %>" shape="<%=td.getDenGio()%>" rel="<%=td.getDenPhut()%>" rev="<%=hours%>"  name="<%=minutes%>" onclick="Edit_TD(this.title, this.className, this.id, this.lang, this.shape, this.rel, this.rev, this.name)"><img style=" margin-right: 15px; width: 17px; margin-top: 2px;" alt="" src="../images/edit.png"></a>
                        <a href="#" name="<%= td.getMaTD() %>" class="<%= td.getMaNN()%>" lang="<%=msgright%>" id="<%=msgchecksubmit%>" onclick="Save_editTD(this.name, this.className, this.lang, this.id)"><img style="width: 20px;" alt="" src="../images/save.png"></a>                        
                    </td>
                </tr>
                <%  }
                %>
            </tbody>
        </table>
    </div>
</div>
